package com.sinosoft.ptas.control.dto;

import java.io.Serializable;
import java.util.List;

import com.sinosoft.ptas.entity.NoticeEntity;
import com.sinosoft.ptas.entity.OrganizationNoticeRefEntity;
import com.sinosoft.ptas.system.util.PtasObjectUtil;

/**
 * 公告传输类
 * @author lianWuJun
 * @time   2017年2月23日 上午10:16:24
 */
public class NoticeData implements Serializable{

	private static final long serialVersionUID = 1L;
	private String id;//编号（不是序号）
	private String noticeName;//公告名称
	private String publishTime;//发布时间
	private String attachmentUrl;//附件地址
	private String clickNum;//点击量
	private String downNum;//下载量
	private String content;//内容
	private String[] noticeObject;//公告对象
	private String noticeObjects;//公告对象  存入公告表
	private String creater;//创建人
	private String createTime;//创建时间
	private String updater;//更新人
	private String updateTime;//更新时间
	private List<OrganizationNoticeRefEntity> OrganizationNoticeRefList;
	
	public String getId() {
		return id;
	}
	public void setId(String id) {
		this.id = id;
	}
	public String getNoticeName() {
		return noticeName;
	}
	public void setNoticeName(String noticeName) {
		this.noticeName = noticeName;
	}
	public String getPublishTime() {
		return publishTime;
	}
	public void setPublishTime(String publishTime) {
		this.publishTime = publishTime;
	}
	public String getAttachmentUrl() {
		return attachmentUrl;
	}
	public void setAttachmentUrl(String attachmentUrl) {
		this.attachmentUrl = attachmentUrl;
	}
	public String getClickNum() {
		return clickNum;
	}
	public void setClickNum(String clickNum) {
		this.clickNum = clickNum;
	}
	public String getDownNum() {
		return downNum;
	}
	public void setDownNum(String downNum) {
		this.downNum = downNum;
	}
	public String getContent() {
		return content;
	}
	public void setContent(String content) {
		this.content = content;
	}
	public String[] getNoticeObject() {
		return noticeObject;
	}
	public void setNoticeObject(String[] noticeObject) {
		this.noticeObject = noticeObject;
	}
	public String getCreater() {
		return creater;
	}
	public void setCreater(String creater) {
		this.creater = creater;
	}
	public String getUpdater() {
		return updater;
	}
	public void setUpdater(String updater) {
		this.updater = updater;
	}
	public static long getSerialversionuid() {
		return serialVersionUID;
	}
	public String getCreateTime() {
		return createTime;
	}
	public void setCreateTime(String createTime) {
		this.createTime = createTime;
	}
	public String getUpdateTime() {
		return updateTime;
	}
	public void setUpdateTime(String updateTime) {
		this.updateTime = updateTime;
	}
	public String getNoticeObjects() {
		return noticeObjects;
	}
	public void setNoticeObjects(String noticeObjects) {
		this.noticeObjects = noticeObjects;
	}
	public List<OrganizationNoticeRefEntity> getOrganizationNoticeRefList() {
		return OrganizationNoticeRefList;
	}
	public void setOrganizationNoticeRefList(
			List<OrganizationNoticeRefEntity> organizationNoticeRefList) {
		OrganizationNoticeRefList = organizationNoticeRefList;
	}
	/**
	 * 传输类转化成实体类
	 */
	public NoticeEntity toEntity(){
		NoticeEntity noticeEntity = new NoticeEntity();
		PtasObjectUtil.oldToNew(noticeEntity, this, "serialVersionUID");
		return noticeEntity;
	}
	
	/**
	 * 实体类转化成传输类
	 */
	public void toNoticeData(NoticeEntity noticeEntity){
		PtasObjectUtil.oldToNew(this, noticeEntity, "serialVersionUID");
	}
}
